package com.qc.blogsystemplus.service;

import com.qc.blogsystemplus.entity.Category;
import com.qc.blogsystemplus.mapper.CategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    public List<Category> getAllCategory(){
        return categoryMapper.getAllCategory();
    }

}
